#!/usr/bin/env python
# -*- coding: utf-8 -*-

# import numpy as np
# import matplotlib.pyplot as plt
# import os

decode_info =[
([(0, 8)], 'Optype',  'optype ==FFMA', 'FFMA'),
([(8, 4)], 'SType',  'stype ==RRC', 'FFMA_RRC'),
([(12, 3)], 'Pred',  'pg =PT', 'FALU'),
([(15, 1)], 'PModi',  'pg.not =False', 'FALU'),
([(16, 8)], 'Reg',  'rd', 'FALU'),
([(24, 8)], 'Reg',  'ra', 'FALU'),
([(32, 17)], 'SImm17',  'vc.coffset', 'FFMA_RRC'),
([(49, 5)], 'UImm5',  'vc.cbank', 'FFMA_RRC'),
([(62, 1)], 'SignModi',  'vc.neg =False', 'FFMA_RRC'),
([(63, 1)], 'SignModi',  'vc.abs =False', 'FFMA_RRC'),
([(64, 8)], 'Reg',  'rb', 'FFMA_RRC'),
([(72, 1)], 'SignModi',  'ra.neg =False', 'FALU'),
([(73, 1)], 'SignModi',  'ra.abs =False', 'FALU'),
([(74, 1)], 'SignModi',  'rb.neg =False', 'FFMA_RRC'),
([(75, 1)], 'SignModi',  'rb.abs =False', 'FFMA_RRC'),
([(76, 1)], 'FPFtz',  'ftz =NoFTZ', 'FALU'),
([(77, 1)], 'FPSat',  'sat =NoSAT', 'FALU'),
([(78, 2)], 'FPRound',  'rnd =RN', 'FALU'),
([(110, 6)], 'ReqSB',  'req =0x0', 'ALL'),
([(116, 3)], 'WrSB',  'wsb =None', 'ALL'),
([(119, 5)], 'Sched',  'sched', 'ALL'),
([(124, 1)], 'Trap',  'trap =NoTrap', 'ALL'),
]

asm_fmt = '''
{pgs(pg, pg.not)}  {optype}

'''

if __name__ == '__main__':
    pass